package com.gitee.neuray.security.auth.feign;

import com.gitee.neuray.security.admin.dto.AdminUser;
import com.gitee.neuray.security.auth.configuration.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * Created by 东睿小组
 * @author zhhongyu
 * @des
 */
@FeignClient(value = "neuray-pm-admin",configuration = FeignConfiguration.class)
public interface IUserService {
  @RequestMapping(value = "/api/user/validate", method = RequestMethod.POST)
  public AdminUser validate(@RequestParam("pid") String pid, @RequestParam("password") String password);
}
